package rlex.classes.program;

/*
 * begin
 * 	COMMANDLIST
 * end
 */
public class CommandBlock extends Command {
	private CommandList commands;

	public CommandList getCommands() {
		return commands;
	}

	public void setCommands(CommandList commands) {
		this.commands = commands;
	}

	public String toString() {
		return commands.toString();
	}
	
	public void display(int level) {
		System.out.print("BEGIN\n");
		commands.display(level + 1);
		System.out.print("\nEND\n");
	}

}
